$(function () {
    //计算每行小计价格
    getRowPirce();
    function getRowPirce(){
        $(".order-list li").each(function(i,v){
            var price = $(v).find(".price p span").html();
            price = parseFloat(price);
            var num = $(v).find(".num p").html();
            console.log(num)
            price = price*num;
            var xx = price.toFixed(2);
            $(v).find(".sum p span").html(xx);
        })
    }
})